#include "stdafx.h"
#include <conio.h>
#include <vector>
#include <map>
using namespace std;

#ifndef NEEDED_DATA_INCLUDE
#include "NeededData.h"
#endif

class DatabaseIndex
{
public:
	DatabaseIndex();
	~DatabaseIndex();
	void AddData( CString* index, NeededData* stNeedData );
	//vector<CString> GetDataByIndex(CString index);
	bool AlreadyHave( CString index,const std::map<CString, std::vector<NeededData*>>* m_Index );
	std::map<CString, std::vector<NeededData*>> GetData();
	void ClearDataIndex();
protected:
private:
	std::map<CString, std::vector<NeededData*>> m_Index;
};